import axios from 'axios'

const api = axios.create({
  baseURL: 'http://47.108.137.238:8081/',
  headers: {
    'Content-Type': 'application/json'
  }
})

export default {
  register(user) {
    return api.post('/register', user)
  },
  login(credentials) {
    return api.post('/login', credentials)
  }
}